<template>
  <div class="demo">
    <div class="demo-title">前缀和后缀</div>
    <div class="demo-content">
      <Input v-model:value="userName" placeholder="Basic usage">
        <template #prefix>
          <UserOutlined type="user" />
        </template>
        <template #suffix>
          <Tooltip title="Extra information">
            <InfoCircleOutlined style="color: rgba(0, 0, 0, 0.45)" />
          </Tooltip>
        </template>
      </Input>
      <br />
      <br />
      <Input prefix="￥" suffix="RMB" />
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import { UserOutlined, InfoCircleOutlined } from '@ant-design/icons-vue';
  import Tooltip from '@sscd/tooltip';
  import Input from '@sscd/input';
  const userName = ref<string>('');
</script>

<style lang="less" scoped></style>
